﻿namespace LiteBlog.Models
{
    using System.ComponentModel.DataAnnotations;

    public class LoginModel
    {   
        public LoginModel() : this(string.Empty, string.Empty)
        {
        }

        public LoginModel(string name, string password)
        {
            Name = name;
            Password = password;
        }

       [Required(ErrorMessage = "Please enter a password")]
        public string Password { get; set; }

        [Required(ErrorMessage = "Please enter a login name")]
        public string Name { get; set; }
    }
}